import { defineStore } from "pinia";
import { ref } from "vue";

export const useJobTakerStore = defineStore("jobTaker", () => {
  const takersId = ref<Number[]>([]);
  const takersName = ref<String[]>([]);
  const maxPeople = ref(0);
  const jobId = ref(0)


  function clearTakers() {
    takersId.value = []
    takersName.value = []
  }
  return { takersId, takersName, maxPeople, clearTakers,jobId };
});
